public class Change02 {
    //选择排序
    public static void main(String[] args) {
        int[] num = {15,4,6,58,15,84,51,18,4,48,1,8,3,738,29,5,9,4,8,};
        for (int i = 0; i < num.length ; i++) {
            int crue = i;
            for (int j = i; j < num.length ; j++) {
                if(num[crue] > num[j]){
                    crue = j;
                }
            }
            int temp = num[i];
            num[i] = num[crue];
            num[crue] = temp;
        }
        for (int i : num
             ) {
            System.out.println(i);
        }
    }
}
